3.1.50 \(\int \frac {d+e x}{x^3 (b x+c x^2)} \, dx\)

Optimal. Leaf size=86 \[ -\frac {c^2 \log (x) (c d-b e)}{b^4}+\frac {c^2 (c d-b e) \log (b+c x)}{b^4}-\frac {c (c d-b e)}{b^3 x}+\frac {c d-b e}{2 b^2 x^2}-\frac {d}{3 b x^3} \]

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {765} \begin {gather*} -\frac {c^2 \log (x) (c d-b e)}{b^4}+\frac {c^2 (c d-b e) \log (b+c x)}{b^4}+\frac {c d-b e}{2 b^2 x^2}-\frac {c (c d-b e)}{b^3 x}-\frac {d}{3 b x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x)/(x^3*(b*x + c*x^2)),x]

[Out]

-d/(3*b*x^3) + (c*d - b*e)/(2*b^2*x^2) - (c*(c*d - b*e))/(b^3*x) - (c^2*(c*d - b*e)*Log[x])/b^4 + (c^2*(c*d -
b*e)*Log[b + c*x])/b^4

Rule 765

Int[((e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[Expand
Integrand[(e*x)^m*(f + g*x)*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, e, f, g, m}, x] && IntegerQ[p] && (
GtQ[p, 0] || (EqQ[a, 0] && IntegerQ[m]))

Rubi steps

\begin {align*} \int \frac {d+e x}{x^3 \left (b x+c x^2\right )} \, dx &=\int \left (\frac {d}{b x^4}+\frac {-c d+b e}{b^2 x^3}-\frac {c (-c d+b e)}{b^3 x^2}+\frac {c^2 (-c d+b e)}{b^4 x}-\frac {c^3 (-c d+b e)}{b^4 (b+c x)}\right ) \, dx\\ &=-\frac {d}{3 b x^3}+\frac {c d-b e}{2 b^2 x^2}-\frac {c (c d-b e)}{b^3 x}-\frac {c^2 (c d-b e) \log (x)}{b^4}+\frac {c^2 (c d-b e) \log (b+c x)}{b^4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 81, normalized size = 0.94 \begin {gather*} \frac {\frac {b \left (-\left (b^2 (2 d+3 e x)\right )+3 b c x (d+2 e x)-6 c^2 d x^2\right )}{x^3}+6 c^2 \log (x) (b e-c d)+6 c^2 (c d-b e) \log (b+c x)}{6 b^4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x)/(x^3*(b*x + c*x^2)),x]

[Out]

((b*(-6*c^2*d*x^2 + 3*b*c*x*(d + 2*e*x) - b^2*(2*d + 3*e*x)))/x^3 + 6*c^2*(-(c*d) + b*e)*Log[x] + 6*c^2*(c*d -
 b*e)*Log[b + c*x])/(6*b^4)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x}{x^3 \left (b x+c x^2\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(d + e*x)/(x^3*(b*x + c*x^2)),x]

[Out]

IntegrateAlgebraic[(d + e*x)/(x^3*(b*x + c*x^2)), x]

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 94, normalized size = 1.09 \begin {gather*} \frac {6 \, {\left (c^{3} d - b c^{2} e\right )} x^{3} \log \left (c x + b\right ) - 6 \, {\left (c^{3} d - b c^{2} e\right )} x^{3} \log \relax (x) - 2 \, b^{3} d - 6 \, {\left (b c^{2} d - b^{2} c e\right )} x^{2} + 3 \, {\left (b^{2} c d - b^{3} e\right )} x}{6 \, b^{4} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^3/(c*x^2+b*x),x, algorithm="fricas")

[Out]

1/6*(6*(c^3*d - b*c^2*e)*x^3*log(c*x + b) - 6*(c^3*d - b*c^2*e)*x^3*log(x) - 2*b^3*d - 6*(b*c^2*d - b^2*c*e)*x
^2 + 3*(b^2*c*d - b^3*e)*x)/(b^4*x^3)

________________________________________________________________________________________

giac [A]  time = 0.16, size = 103, normalized size = 1.20 \begin {gather*} -\frac {{\left (c^{3} d - b c^{2} e\right )} \log \left ({\left | x \right |}\right )}{b^{4}} + \frac {{\left (c^{4} d - b c^{3} e\right )} \log \left ({\left | c x + b \right |}\right )}{b^{4} c} - \frac {2 \, b^{3} d + 6 \, {\left (b c^{2} d - b^{2} c e\right )} x^{2} - 3 \, {\left (b^{2} c d - b^{3} e\right )} x}{6 \, b^{4} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^3/(c*x^2+b*x),x, algorithm="giac")

[Out]

-(c^3*d - b*c^2*e)*log(abs(x))/b^4 + (c^4*d - b*c^3*e)*log(abs(c*x + b))/(b^4*c) - 1/6*(2*b^3*d + 6*(b*c^2*d -
 b^2*c*e)*x^2 - 3*(b^2*c*d - b^3*e)*x)/(b^4*x^3)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 101, normalized size = 1.17 \begin {gather*} \frac {c^{2} e \ln \relax (x )}{b^{3}}-\frac {c^{2} e \ln \left (c x +b \right )}{b^{3}}-\frac {c^{3} d \ln \relax (x )}{b^{4}}+\frac {c^{3} d \ln \left (c x +b \right )}{b^{4}}+\frac {c e}{b^{2} x}-\frac {c^{2} d}{b^{3} x}-\frac {e}{2 b \,x^{2}}+\frac {c d}{2 b^{2} x^{2}}-\frac {d}{3 b \,x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)/x^3/(c*x^2+b*x),x)

[Out]

-c^2/b^3*ln(c*x+b)*e+c^3/b^4*ln(c*x+b)*d-1/3*d/b/x^3-1/2/b/x^2*e+1/2/b^2/x^2*c*d+c^2/b^3*ln(x)*e-c^3/b^4*ln(x)
*d+c/b^2/x*e-c^2/b^3/x*d

________________________________________________________________________________________

maxima [A]  time = 0.88, size = 89, normalized size = 1.03 \begin {gather*} \frac {{\left (c^{3} d - b c^{2} e\right )} \log \left (c x + b\right )}{b^{4}} - \frac {{\left (c^{3} d - b c^{2} e\right )} \log \relax (x)}{b^{4}} - \frac {2 \, b^{2} d + 6 \, {\left (c^{2} d - b c e\right )} x^{2} - 3 \, {\left (b c d - b^{2} e\right )} x}{6 \, b^{3} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^3/(c*x^2+b*x),x, algorithm="maxima")

[Out]

(c^3*d - b*c^2*e)*log(c*x + b)/b^4 - (c^3*d - b*c^2*e)*log(x)/b^4 - 1/6*(2*b^2*d + 6*(c^2*d - b*c*e)*x^2 - 3*(
b*c*d - b^2*e)*x)/(b^3*x^3)

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 97, normalized size = 1.13 \begin {gather*} \frac {2\,c^2\,\mathrm {atanh}\left (\frac {c^2\,\left (b\,e-c\,d\right )\,\left (b+2\,c\,x\right )}{b\,\left (c^3\,d-b\,c^2\,e\right )}\right )\,\left (b\,e-c\,d\right )}{b^4}-\frac {\frac {d}{3\,b}+\frac {x\,\left (b\,e-c\,d\right )}{2\,b^2}-\frac {c\,x^2\,\left (b\,e-c\,d\right )}{b^3}}{x^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x)/(x^3*(b*x + c*x^2)),x)

[Out]

(2*c^2*atanh((c^2*(b*e - c*d)*(b + 2*c*x))/(b*(c^3*d - b*c^2*e)))*(b*e - c*d))/b^4 - (d/(3*b) + (x*(b*e - c*d)
)/(2*b^2) - (c*x^2*(b*e - c*d))/b^3)/x^3

________________________________________________________________________________________

sympy [B]  time = 0.50, size = 165, normalized size = 1.92 \begin {gather*} \frac {- 2 b^{2} d + x^{2} \left (6 b c e - 6 c^{2} d\right ) + x \left (- 3 b^{2} e + 3 b c d\right )}{6 b^{3} x^{3}} + \frac {c^{2} \left (b e - c d\right ) \log {\left (x + \frac {b^{2} c^{2} e - b c^{3} d - b c^{2} \left (b e - c d\right )}{2 b c^{3} e - 2 c^{4} d} \right )}}{b^{4}} - \frac {c^{2} \left (b e - c d\right ) \log {\left (x + \frac {b^{2} c^{2} e - b c^{3} d + b c^{2} \left (b e - c d\right )}{2 b c^{3} e - 2 c^{4} d} \right )}}{b^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x**3/(c*x**2+b*x),x)

[Out]

(-2*b**2*d + x**2*(6*b*c*e - 6*c**2*d) + x*(-3*b**2*e + 3*b*c*d))/(6*b**3*x**3) + c**2*(b*e - c*d)*log(x + (b*
*2*c**2*e - b*c**3*d - b*c**2*(b*e - c*d))/(2*b*c**3*e - 2*c**4*d))/b**4 - c**2*(b*e - c*d)*log(x + (b**2*c**2
*e - b*c**3*d + b*c**2*(b*e - c*d))/(2*b*c**3*e - 2*c**4*d))/b**4

________________________________________________________________________________________